<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="../pengxuan.js"></script>
<style>
#box{width:200px;height:200px;border:1px solid red;cursor:move;position:absolute;}
#inner{width:10px;height:10px;position:absolute;left:190px;top:190px;/*background:green;*/ cursor:se-resize;}
</style>

<script>
window.onload=function(){
	var box=document.getElementById("box");
	//拖拽
	drag(box);
	var inner=document.getElementById("inner");
	//缩放
	//zooms(inner,box)
};



</script>
</head>

<body>
fffff
<div style="width:500px;height:500px;border:1px solid blue;position:relative;">
<div id="box"><div id="inner"></div></div>
</div>
</body>
</html>
